import numpy as np

X = np.array([[1, 2], [3, 4], [5, 6]])
X = np.hstack([np.ones((X.shape[0], 1)), X])
print(X)

x = np.array([2, 3, 4])
a = np.concatenate((np.ones(1), np.array(x)))
print(a)
